package number.value;

import java.math.BigDecimal;

public class floatBigDecimal {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		float progress = 12.03564516f;
		float allSize = 24.12651941654f;
		BigDecimal bigDecimalProgress = new BigDecimal(progress);
		float prog = bigDecimalProgress.setScale(2, BigDecimal.ROUND_HALF_UP)
				.floatValue();
		BigDecimal bigDecimalAll = new BigDecimal(allSize);
		float all = bigDecimalAll.setScale(2, BigDecimal.ROUND_HALF_UP)
				.floatValue();
		System.out.println("bigDecimalProgress = " + prog + " bigDecimalAll = "
				+ all);
		if (prog >= all) {
			System.out.println("prog >= all");
		}else {
			System.out.println("prog < all");
		}
	}

}
